import request from '@/utils/request'

// 查询收藏夹列表
export function listMyFavorite(query) {
  return request({
    url: '/system/myFavorite/list',
    method: 'get',
    params: query
  })
}

// 查询收藏夹详细
export function getMyFavorite(id) {
  return request({
    url: '/system/myFavorite/' + id,
    method: 'get'
  })
}

// 新增收藏夹
export function addMyFavorite(data) {
  return request({
    url: '/system/myFavorite',
    method: 'post',
    data: data
  })
}

// 修改收藏夹
export function updateMyFavorite(data) {
  return request({
    url: '/system/myFavorite',
    method: 'put',
    data: data
  })
}

// 删除收藏夹
export function delMyFavorite(id) {
  return request({
    url: '/system/myFavorite/' + id,
    method: 'delete'
  })
}
